/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class En_logsDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression lo_id_logs;
	public final StringExpression lo_parametro;
	public final StringExpression lo_resultado;
	public final StringExpression lo_tiempo;
	
	public En_logsDetachedCriteria() {
		super(orm.En_logs.class, orm.En_logsCriteria.class);
		lo_id_logs = new IntegerExpression("lo_id_logs", this.getDetachedCriteria());
		lo_parametro = new StringExpression("lo_parametro", this.getDetachedCriteria());
		lo_resultado = new StringExpression("lo_resultado", this.getDetachedCriteria());
		lo_tiempo = new StringExpression("lo_tiempo", this.getDetachedCriteria());
	}
	
	public En_logsDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.En_logsCriteria.class);
		lo_id_logs = new IntegerExpression("lo_id_logs", this.getDetachedCriteria());
		lo_parametro = new StringExpression("lo_parametro", this.getDetachedCriteria());
		lo_resultado = new StringExpression("lo_resultado", this.getDetachedCriteria());
		lo_tiempo = new StringExpression("lo_tiempo", this.getDetachedCriteria());
	}
	
	public En_logs uniqueEn_logs(PersistentSession session) {
		return (En_logs) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public En_logs[] listEn_logs(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (En_logs[]) list.toArray(new En_logs[list.size()]);
	}
}

